home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSEditableElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  96 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSEditableElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSEditableElement_h__
  6. #define __gen_nsIDOMNSEditableElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIEditor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMNSEditableElement */
  21. #define NS_IDOMNSEDITABLEELEMENT_IID_STR "c4a71f8e-82ba-49d7-94f9-beb359361072"
  22.  
  23. #define NS_IDOMNSEDITABLEELEMENT_IID \
  24.   {0xc4a71f8e, 0x82ba, 0x49d7, \
  25.     { 0x94, 0xf9, 0xbe, 0xb3, 0x59, 0x36, 0x10, 0x72 }}
  26.  
  27. /**
  28.  * This interface is implemented by elements which have inner editable content,
  29.  * such as HTML input and textarea. 
  30. */
  31. class NS_NO_VTABLE nsIDOMNSEditableElement : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSEDITABLEELEMENT_IID)
  35.  
  36.   /* readonly attribute nsIEditor editor; */
  37.   NS_IMETHOD GetEditor(nsIEditor * *aEditor) = 0;
  38.  
  39. };
  40.  
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIDOMNSEDITABLEELEMENT \
  43.   NS_IMETHOD GetEditor(nsIEditor * *aEditor); 
  44.  
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  46. #define NS_FORWARD_NSIDOMNSEDITABLEELEMENT(_to) \
  47.   NS_IMETHOD GetEditor(nsIEditor * *aEditor) { return _to GetEditor(aEditor); } 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  50. #define NS_FORWARD_SAFE_NSIDOMNSEDITABLEELEMENT(_to) \
  51.   NS_IMETHOD GetEditor(nsIEditor * *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditor(aEditor); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsDOMNSEditableElement : public nsIDOMNSEditableElement
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSIDOMNSEDITABLEELEMENT
  62.  
  63.   nsDOMNSEditableElement();
  64.  
  65. private:
  66.   ~nsDOMNSEditableElement();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsDOMNSEditableElement, nsIDOMNSEditableElement)
  74.  
  75. nsDOMNSEditableElement::nsDOMNSEditableElement()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsDOMNSEditableElement::~nsDOMNSEditableElement()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* readonly attribute nsIEditor editor; */
  86. NS_IMETHODIMP nsDOMNSEditableElement::GetEditor(nsIEditor * *aEditor)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90.  
  91. /* End of implementation class template. */
  92. #endif
  93.  
  94.  
  95. #endif /* __gen_nsIDOMNSEditableElement_h__ */
  96.